* {
    
    box-sizing: border-box;
}

body {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;

    color: #333;
    margin: 0;
    padding: 0;
}
.navbar {
    border-bottom: 2px solid #333;
    padding: 15px;
    text-align: center;
    margin-bottom: 0;
    background-color: black;
    color: white;
}

.brand {
    font-size: 30px;
}

.scoreboard {
    max-width: 295px;
    width: 100%;
    margin: 10px auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    row-gap: 10px;
    column-gap: 5px;
}
.scoreboard-letter {
    height: 45px;
    width: 45px;
    font-size: 30px;
    text-transform: uppercase;
    border: 3px solid #ccc;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
.correct {
    background-color: #00ff00;
    color: white;

}
.close {
    background-color: goldenrod;
    color: white;
}
.wrong {
    background-color: #888; 
    color: white;
}
.invalid {
    animation: flash 1s;
}

@keyframes flash {
    5% {
        border-color: crimson;
    }
    100% {
        border-color: #ccc;
    }
}
.spiral {
    font-size: 40px;
    animation: spin 1.5s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.hidden {
    visibility: hidden;
}
.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}
@keyframes rainbow {
    100%, 
    0% {
        color: rgb(255, 0, 0);
    }
    8.33% {
        color: rgb(255, 127, 0);
    }
    16.66% {
        color: rgb(255, 255, 0);
    }
    25% {
        color: rgb(127, 255, 0);
    }
    33.33% {
        color: rgb(0, 255, 0);
    }
    41.66% {
        color: rgb(0, 255, 127);
    }
    50% {
        color: rgb(0, 255, 255);
    }
    58.33% {
        color: rgb(0, 127, 255);
    }
    66.66% {
        color: rgb(0, 0, 255);
    }
    75% {
        color: rgb(127, 0, 255);
    }
    83.33% {
        color: rgb(255, 0, 255);
    }
    91.66% {
        color: rgb(255, 0, 127);
    }
}

.winner {
    animation: rainbow 5s linear infinite;
}